<?php
/*
include($_SERVER['DOCUMENT_ROOT']."/conf/conf.php");
if(isSet($_POST['seudonimo']))
{
  $seudonimo = $_POST['seudonimo'];
  
  $dbConf = new OfertoYaConf();
  $databaseURL = $dbConf->darURLBD();
  $databaseUName = $dbConf->darUsuarioBD();
  $databasePWord = $dbConf->darPWordBD();
  $databaseName = $dbConf->darNombreBD();
  
  $connection = mysql_connect($databaseURL,$databaseUName,$databasePWord) or die ("Error while connecting to localhost");
  $db = mysql_select_db($databaseName,$connection);
  
  $SeudonimoSafe = mysql_real_escape_string($seudonimo);
  $query1 = mysql_query("SELECT * FROM usuario WHERE seudonimo ='".$SeudonimoSafe."'");
  
  
  if(mysql_num_rows($query1)>0)
  {
  echo '<font color="red">El seud&oacute;nimo <STRONG>'.$seudonimo.'</STRONG> ya ha sido tomado.</font>';
  }
  else
  {
  echo 'OK';
  }
  mysql_close($connection);
}
*/
include($_SERVER['DOCUMENT_ROOT']."/BD.php");
if(isSet($_POST['seudonimo']))
{
	verificarSeudonimoDisponible($_POST['seudonimo']);
}

?>
